import Vue from 'vue'
import App from '@/App'
import base from '@/common/api/base.js'



const app = new Vue({
	...App
})

const install = (Vue, vm) => {
	let obj = {}
	Vue.use(base, app)
	obj = app.$xt.util.deepMerge(obj, app.$xt.baseObject)
	delete app.$xt.baseObject
	app.$xt.api = obj
}

export default {
	install
}